package com.czk.initializeBean;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * bean的初始化方式
 *
 * @Author:ChenZhangKun
 * @Date: 2021/4/28 15:19
 */
@Component
public class Person {
    @PostConstruct
    public void init() {
        System.out.println("person对象被初始化了");
    }
}
